/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Glavna.java
 *
 * Created on Jun 20, 2010, 2:39:59 PM
 */

package klijent.gui;

import klijent.Klijent;

/**
 *
 * @author Porodica Ivic
 */
public class Glavna extends javax.swing.JFrame {

    /** Creates new form Glavna */
    public Glavna() {
        initComponents();
        setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jmiOsnovniRad = new javax.swing.JMenu();
        jmiRadSaVezbacima = new javax.swing.JMenuItem();
        jmiRadSaTreninzima = new javax.swing.JMenuItem();
        jmiEvidencija = new javax.swing.JMenu();
        jmiEvidencijaDolazaka = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Fitness centar");

        jmiOsnovniRad.setText("Osnovni rad");

        jmiRadSaVezbacima.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.ALT_MASK));
        jmiRadSaVezbacima.setText("Rad sa vezbacima");
        jmiRadSaVezbacima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRadSaVezbacimaActionPerformed(evt);
            }
        });
        jmiOsnovniRad.add(jmiRadSaVezbacima);

        jmiRadSaTreninzima.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.ALT_MASK));
        jmiRadSaTreninzima.setText("Rad sa treninzima");
        jmiRadSaTreninzima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRadSaTreninzimaActionPerformed(evt);
            }
        });
        jmiOsnovniRad.add(jmiRadSaTreninzima);

        jMenuBar1.add(jmiOsnovniRad);

        jmiEvidencija.setText("Evidencija");

        jmiEvidencijaDolazaka.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.ALT_MASK));
        jmiEvidencijaDolazaka.setText("Evidencija dolazaka");
        jmiEvidencijaDolazaka.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiEvidencijaDolazakaActionPerformed(evt);
            }
        });
        jmiEvidencija.add(jmiEvidencijaDolazaka);

        jMenuBar1.add(jmiEvidencija);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 274, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmiRadSaVezbacimaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRadSaVezbacimaActionPerformed
        // TODO add your handling code here:
        new RadSaVezbacima().setVisible(true);
    }//GEN-LAST:event_jmiRadSaVezbacimaActionPerformed

    private void jmiRadSaTreninzimaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRadSaTreninzimaActionPerformed
        // TODO add your handling code here:
        new RadSaTreninzima().setVisible(true);
    }//GEN-LAST:event_jmiRadSaTreninzimaActionPerformed

    private void jmiEvidencijaDolazakaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiEvidencijaDolazakaActionPerformed
        // TODO add your handling code here:
        new EvidencijaDolazaka().setVisible(true);
    }//GEN-LAST:event_jmiEvidencijaDolazakaActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        Klijent.postaviLookAndFeel();
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Glavna().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jmiEvidencija;
    private javax.swing.JMenuItem jmiEvidencijaDolazaka;
    private javax.swing.JMenu jmiOsnovniRad;
    private javax.swing.JMenuItem jmiRadSaTreninzima;
    private javax.swing.JMenuItem jmiRadSaVezbacima;
    // End of variables declaration//GEN-END:variables

}
